/* description
function:
 	double check the tuples and the limitation of power
 written by He Dongjing, Shanghai Jiao Tong University
*/
#include "check.h"
#include <stdio.h>

int main(int argc, char *argv[]) {
/*	feature_ele ele;

	set_location(&ele, 10);
	set_power(&ele, 10.5);
	lib.add_ele(ele);	
	
	
	lib.double_check(chk_ele1);
	check_power(ele, chk_ele1);
*/

	feature_ele chk_ele1;
	set_location(&chk_ele1, 0);
	set_power(&chk_ele1, 30);

	feature_lib lib;
	char *lib_name = "feature_lib.txt";
	get_lib_from_file(lib_name, &lib);
	lib.print_ele();
	
	double power;
	power = lib.double_check(chk_ele1);
	check_power(chk_ele1, power);

	char *file_name = "test.txt";
	set_lib_to_file(file_name, lib);

	return EXIT_SUCCESS;

}
